<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<title>GeoReport</title>
<head>
<link rel="styleSheet" href ="/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/ext/resources/css/ext-all.css" type="text/css" />
<style>
	#content {
		line-height: 1em;
	}
        .zoomin {
          background-image:url(/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/mapfish/img/icon_zoomin.png) !important;
          height:20px !important;
          width:20px !important;
        }
        .zoomout {
          background-image:url(/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/mapfish/img/icon_zoomout.png) !important;
          height:20px !important;
          width:20px !important;
        }
        .zoomfull {
          background-image:url(/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/mapfish/img/icon_zoomfull.png) !important;
          height:20px !important;
          width:20px !important;
        }
        .pan {
          background-image:url(/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/mapfish/img/icon_pan.png) !important;
          height:20px !important;
          width:20px !important;
        }
        .drawpoint {
          background-image:url(/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/mapfish/img/draw_point_off.png) !important;
          height:20px !important;
          width:20px !important;
        }
        .drawline {
          background-image:url(/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/mapfish/img/draw_line_off.png) !important;
          height:20px !important;
          width:20px !important;
        }
        .drawpolygon {
          background-image:url(/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/mapfish/img/draw_polygon_off.png) !important;
          height:20px !important;
          width:20px !important;
        }
        .next {
            background-image:url(/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/mapfish/img/resultset_next.png) !important;
            height:20px !important;
            width:20px !important;
        }
        .back {
            background-image:url(/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/mapfish/img/resultset_previous.png) !important;
            height:20px !important;
            width:20px !important;
        }
 </style>
<link id="theme" rel="styleSheet" href ="/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/ext/resources/css/xtheme-gray.css" type="text/css" />
<link id="theme" rel="styleSheet" href ="/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/ext-community-extensions/color-field.css" type="text/css" />
<link id="theme" rel="styleSheet" href ="/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/openlayers/theme/default/framedCloud.css" type="text/css" />
</head>
<body>

  <div style="width: 600px; height: 200px; z-index:0;">&nbsp;
  
  <div id="buttonbar"></div>
  <div id="map"></div>

  </div>
  <center id="error"></center>

 
</body>

<script type="text/javascript" src='/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/ext/adapter/ext/ext-base.js'/></script>
<script type="text/javascript" src='/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/ext/ext-all.js'/></script>
<script type="text/javascript" src='/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/openlayers/lib/OpenLayers.js'/></script>
<script type="text/javascript" src='/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/mapfish/MapFish.js'/></script>
<script type="text/javascript" src='/SpagoBIGeoReportEngine/js/lib/mapfish/client/mfbase/ext-community-extensions/color-field.js'/></script>
<script type="text/javascript" src='/SpagoBIGeoReportEngine/js/lib/mapfish/mapnew.js'/></script>
<script type="text/javascript" src="/SpagoBIGeoReportEngine/js/sbisdk-all-production.js"></script>

<script language="javascript" type="text/javascript">

var viewport;

map =
{
    indicators: [["numero_watson","NUMERO"],["valore_watson","VALORE"]],
    geojsonUrl: "localhost:8080",
    analysis: "prop",
    //IF YOU WANT TO DISPLAY MAP IN EXT WINDOW (default is Ext ViewPort)
    window: "false",
    businessId: "id_capoluog", //it links to alphanumeric data into spagobi dataset
    geoId: "gid", //it links to geometires 
    //geoId: "Codistreg",
    layer: "capoluoghi",
    //layer: "reg_it",
    layer_name: "Capoluoghi",
    //layer_name: "Regioni",
    mapname: "WATSONs",
    width: 0, //ONLY FOR EXT WINDOW
    height: 600, //ONLY FOR EXT WINDOW
    spagobiDataset: 'mapdata', //spagobi dataset label from which you can retreive alphanumeric data
    document1Label: "geobi_dial2", 
    document2Label: "GEOREPORT_DOC_BAR",  
    role: "spagobi/admin",
    dispToolbar1: "false",
    dispSlide1: "false",
    dispToolbar2: "false",
    dispSlide2: "false",
    listeners: [["value","numero_watson"]],
    document2Listeners: [["regione","gl_regione"]],
    parameters: [],
    document2Parameters: [],
    feautreInfo: [["REGIONE","gl_regione"], ["CAPOLUOGO","nome"]],
	  initPosLon: 6.090,
	  initPosLat: 40.373,
	  initZoom: 5
}

</script>